package org.springblade.task.base.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.common.utils.DateUtils;
import org.springblade.task.base.entity.BaseTaskLog;
import org.springblade.task.base.mapper.BaseTaskLogMapper;
import org.springblade.task.base.param.BaseTaskLogParam;
import org.springblade.task.base.service.IBaseTaskLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: TODO
 * @author syncwt
 * @date ${date} ${time}
 * @version V1.0
 */
@Service
public class BaseTaskLogServiceImpl extends ServiceImpl<BaseTaskLogMapper, BaseTaskLog> implements IBaseTaskLogService {


	@Autowired
	private BaseTaskLogMapper BaseTaskLogMapper;

	/**
	 *
	 * @return
	 */
	public List<BaseTaskLog> queryGroupByTaskNameActivityLog(BaseTaskLogParam param) {

		List<BaseTaskLog> activityLogList = BaseTaskLogMapper.queryGroupByTaskNameActivityLog(param);
		return activityLogList;
	}

	public List<BaseTaskLog> queryActivityLog(BaseTaskLogParam param) {

		List<BaseTaskLog> activityLogList = BaseTaskLogMapper.queryActivityLog(param);
		return activityLogList;
	}

	public List<BaseTaskLog> queryByDateForReport(BaseTaskLogParam param) {
		List<BaseTaskLog> activityLogReportList = BaseTaskLogMapper.queryByDateForReport(param);
		return activityLogReportList;
	}

	public void saveBaseTaskLogYear(BaseTaskLogParam logParam) {
		BaseTaskLogMapper.saveBaseTaskLogYear(logParam);
	}
}
